import 'package:flutter/material.dart';
import 'package:flutter_getx_project/pages/home/home_controller.dart';
import 'package:flutter_getx_project/pages/home/home_page.dart';
import 'package:get/get.dart';
import 'package:x_project/components/keep_alive_widget.dart';
import 'package:x_project/x_project.dart';

/// Created by XieXin on 2022/8/23.
/// 数据状态
class MainState {
  late int index;
  late List<Widget> tabPages;
  late List<String> tabTitles;
  late List tabIcons;

  MainState() {
    index = 0;
    Get.lazyPut(() => HomeController());
    tabPages = [
      KeepAliveWidget(child: HomePage()),
      const KeepAliveWidget(child: InDevelopmentWidget()),
    ];
  }
}
